package com.siyuan.blog.service.system.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.siyuan.blog.dao.system.UserMapper;
import com.siyuan.blog.service.system.UserService;
import com.siyuan.blog.common.base.impl.SuperServiceImpl;
import com.siyuan.blog.domain.system.User;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl extends SuperServiceImpl<UserMapper,User> implements UserService {

    @Override
    public Page<User> selectUserPage(Page<User> page, Wrapper<User> var2) {
        return page.setRecords(baseMapper.selectUserList(page, var2));
    }

    @Override
    public void update(User user) {
        baseMapper.update(user);
    }

    @Override
    public void modifyStatus(Integer id) {
        baseMapper.modifyStatus(id);
    }

    @Override
    public void modifyRole(Integer id, Integer roleId) {
        baseMapper.modifyRole(id,roleId);
    }
}
